
import 'package:flutter/material.dart';
import 'package:get/get_utils/get_utils.dart';
import 'package:FiduMart/core/utils/stringUtil.dart';

class EmptyWidget extends StatelessWidget {
  EmptyWidget({this.text});

  String? text;

  @override
  Widget build(BuildContext context) {
    if(StringUtil.isEmpty(text)){
    text="no_data".tr;
    }
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        SizedBox(
          height: 30,),
        Image.asset(
          "assets/images/nodata_btnImage.png",
          width: 100,
        ),
        Padding(
          padding: const EdgeInsets.fromLTRB(30, 10, 30, 10),
          child: Text(text!,textAlign: TextAlign.center,style: TextStyle(color: Colors.grey)),
        ),
        SizedBox(
          height: 20,),
      ],
    );
  }
}